package com.testfileupload.uploadimg.design.chainofresponsibility.correct;

/**
 * 古代妇女
 */
public class Women implements IWomen {
    /**
     * 通过一个int类型来描述妇女的个人情况
     * 0--未出嫁
     * 1--出嫁
     * 2--夫死
     *
     * @return
     */
    private int type = 0;
    //妇女的请示
    private String request = "";

    public Women(int type, String request) {
        this.type = type;
        switch (this.type) {
            case 1:
                this.request = "女儿的请求是" + request;
                break;
            case 2:
                this.request = "妻子的请求是" + request;
                break;
            case 3:
                this.request = "母亲的请求是" + request;
                break;
        }
        this.request = request;
    }

    @Override
    public int getType() {
        return this.type;
    }

    @Override
    public String getRequest() {
        return this.request;
    }
}
